#ifndef _BEAM_
#define _BEAM_

#include "Weapon.h"

#include "hge\hge.h"
#include "hge\hgeresource.h"
#include "hge\hgesprite.h"


class Beam: public Weapon
{
public:
	Beam(hgeResourceManager* hgeResMan, float x0, float y0, float _vx, float _vy, float cTime, int playerId);
	Beam(hgeResourceManager* hgeResMan, float x0, float y0, float rot, float cTime, int playerId);
	bool update(float dt);
	void render();
	static bool cd(float time, int playerId);
	static hgeSprite* spr;
private:
	float x, y, vx, vy, rot;
	DWORD color;
	/**
	 * @breif record the time of last fire for this weapon for each player. 10 is the max player number supported
	 */
	static float lastFireList[10];
};

#endif